package com.siecom.bean;

import android.graphics.Bitmap;
import android.os.Parcel;
import android.os.Parcelable;

/**
 * 保存是否信息的Bean
 *
 * @author gang
 *
 */
public class IdentityInfoBean implements Parcelable {
    /**
     * 姓名
     */
    public String fullName;
    /**
     * 性别 1 男 0 女
     */
    public String sex;
    /**
     * 证件照片
     */
    public Bitmap icon;
    /**
     * 民族
     */
    public String nation;

    /**
     * 生日
     */
    public String birthday;

    /**
     * 证件上的地址
     */
    public String idAddr;

    /**
     * 证件号码
     */
    public String idNo;

    /**
     * 发证机关
     */
    public String idOrg;

    /**
     * 证件有效期 开始 时间格式 yyyyMMdd
     */
    public String beginDate;

    /**
     * 证件有效期 结束
     */
    public String endDate;

    public byte[] fingerByte;
    public String fingerStr;


    public String reserveA;   //港澳身份证预留区A

    public String reserveB;   //港澳身份证预留区B

    public String reserveC;   //港澳身份证预留区C

    public String issuingNo;   //港澳通行证 签发次数

    public String passportNo;  //港澳身份证 通行证号码

    public String cardType; //证件类型

    public String cardVer;//证件版本

    public String  countryCode;//国家代码

    public String enName;//英文名称

    public String getCardType() {
        return cardType;
    }

    public String getCardVer() {
        return cardVer;
    }

    public String getCountryCode() {
        return countryCode;
    }

    public String getEnName() {
        return enName;
    }

    public void setCardType(String cardType) {
        this.cardType = cardType;
    }

    public void setCardVer(String cardVer) {
        this.cardVer = cardVer;
    }

    public void setCountryCode(String countryCode) {
        this.countryCode = countryCode;
    }

    public void setEnName(String enName) {
        this.enName = enName;
    }

    public void setImageByte(byte[] imageByte) {
        this.imageByte = imageByte;
    }

    public byte[] getImageByte() {

        return imageByte;
    }

    public byte[] imageByte;

    public String imageStr;

    public String getImageStr() {
        return imageStr;
    }

    public void setImageStr(String imageStr) {
        this.imageStr = imageStr;
    }

    public String getNewAddress() {
        return newAddress;
    }

    public void setNewAddress(String newAddress) {

        this.newAddress = newAddress;
    }

    public String newAddress;

    @Override
    public int describeContents() {
        return 0;
    }


    public IdentityInfoBean() {
    }

    public IdentityInfoBean(Parcel source) {
        source.readString();
        source.readInt();
        source.readParcelable(getClass().getClassLoader());
        source.readString();
        source.readString();
        source.readString();
        source.readString();
        source.readString();
        source.readString();
        source.readString();
        source.readByteArray(fingerByte);
        source.readString();
        source.readByteArray(imageByte);
        source.readString();
        source.readString();
        source.readString();
        source.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(fullName);
        dest.writeString(sex);
        dest.writeParcelable(icon, flags);
        dest.writeString(nation);
        dest.writeString(birthday);
        dest.writeString(idAddr);
        dest.writeString(idNo);
        dest.writeString(idOrg);
        dest.writeString(beginDate);
        dest.writeString(endDate);
        dest.writeByteArray(fingerByte);
        dest.writeString(newAddress);
        dest.writeByteArray(imageByte);
        dest.writeString(cardType);
        dest.writeString(cardVer);
        dest.writeString(countryCode);
        dest.writeString(enName);
    }

    public static final Creator<IdentityInfoBean> CREATOR = new Creator<IdentityInfoBean>() {
        public IdentityInfoBean createFromParcel(Parcel source) {
            return new IdentityInfoBean(source);
        }

        public IdentityInfoBean[] newArray(int size) {
            return new IdentityInfoBean[size];
        }
    };

    public byte[] getFingerByte() {
        return fingerByte;
    }

    public String getFullName() {
        return fullName;
    }

    public String getSex() {
        return sex;
    }

    public Bitmap getIcon() {
        return icon;
    }

    public String getNation() {
        return nation;
    }

    public String getBirthday() {
        return birthday;
    }

    public String getIdAddr() {
        return idAddr;
    }

    public String getIdNo() {
        return idNo;
    }

    public String getIdOrg() {
        return idOrg;
    }

    public String getBeginDate() {
        return beginDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setFullName(String fullName) {

        this.fullName = fullName;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public void setIcon(Bitmap icon) {
        this.icon = icon;
    }

    public void setNation(String nation) {
        this.nation = nation;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public void setIdAddr(String idAddr) {
        this.idAddr = idAddr;
    }

    public void setIdNo(String idNo) {
        this.idNo = idNo;
    }

    public void setIdOrg(String idOrg) {
        this.idOrg = idOrg;
    }

    public void setBeginDate(String beginDate) {
        this.beginDate = beginDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public void setFingerByte(byte[] fingerByte) {
        this.fingerByte = fingerByte;
    }

    public String getFingerStr() {
        return fingerStr;
    }

    public void setFingerStr(String fingerStr) {
        this.fingerStr = fingerStr;
    }
}
